<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width = device-width ,initial-scale = 1,minimum-scale = 1,maximum-scale = 1,user-scalable =no,"/>
    <title>留言板 - {$feifeicms.site_name}</title>
    {include file="block/include"}
    <script>
        $(function(){
            FFCMS.Gbook.Login = {$gbook.login};
            FFCMS.Gbook.Verify = {$gbook.verify};
            FFCMS.Gbook.Init();
        });
    </script>
</head>
<body>
{include file="block/head"}
<div class="container">
    <div class="row">
	    <div class="col-lg-wide-3 col-xs-1">
	     	<div class="stui-pannel stui-pannel-bg clearfix">
	     		<div class="stui-pannel-box clearfix"> 
	     			<div class="stui-pannel_hd">
						<div class="stui-pannel__head clearfix">
							<h3 class="title">
								我要留言
							</h3>						
						</div>																		
					</div>
	     			<div class="col-pd clearfix">
	     				 <form class="gbook_form">   	     					
	     				<ul class="gbook-form">	
							<li>
								<textarea class="form-control" name="gbook_content"></textarea>
							</li>						
							{if condition="$gbook.verify eq 1"}
							<li>
								<input type="text" name="verify" class="ffcms_verify form-control" placeholder="验证码" style="width: 80px; display: inline-block; margin-right: 10px;">
							</li>
							{/if}
							<li>
								<input class="btn btn-primary pull-right gbook_submit"type="button" value="提交" ><input type="reset" value="重新留言" class="btn btn-default" />
							</li>
	     				</ul>
	     				</form>
	     			</div>
	     		</div>
	     	</div>
	    </div>
	    <div class="col-lg-wide-7 col-xs-1">
			{feifeicms:gbook num="10" paging="yes" order="desc" by="id"}
	    	<div class="stui-pannel stui-pannel-bg clearfix">
	    		<div class="stui-pannel-box clearfix">
	    			<div class="col-pd">
	    				<div class="bottom-line">
	    					<span class="text-muted pull-right">{$vo.gbook_ip|ffcms_long2ip}</span>
	    					<h4 class="title" style=" margin: 0 0 10px; padding-bottom: 10px;">{$vo.gbook_name}</h4>
	    				</div>
	    				<p class="con">{$vo.gbook_content}</p>
	    				{if condition="$vo.gbook_reply_time gt 0"}
						<p class="text-red">管理员回复：{$vo.gbook_reply}</p>
						{/if}
	    				<p class="text-muted font-12">{$vo.gbook_time|date='Y-m-d H:i:s',###}</p>													
	    			</div>   	    			  	    			
	    		</div>
	    	</div>
	    	{/feifeicms:gbook}						
	    	{include file="block/page"}
	    </div>
    </div>
</div>
<style type="text/css">
	.gbook-form li{ margin-bottom: 15px;}
	.gbook-form li:last-child{ margin-bottom: 0;}
</style>
{include file="block/foot"}
</body>
</html>